import com.golden.gamedev.object.*;
import com.golden.gamedev.object.collision.*;


public class BallBlockCollision extends BasicCollisionGroup {

	public boolean collidedBlock;
	boolean invulnerable;
	
	public BallBlockCollision() {
		collidedBlock = false;
		pixelPerfectCollision = true;
		invulnerable = false;
		
	
	}
	
	public void collided(Sprite ball, Sprite block) {
			if(invulnerable == false) {
			ball.setSpeed(0, 0);
			collidedBlock = true;
			}
	
				
	}
		
	public boolean gameOver(){
		
		return collidedBlock;
	}

}
